package com.xl.generator.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xl.generator.domain.CommunityPost;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xl.generator.dto.CommunityPostDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Nannan
* @description 针对表【community_post】的数据库操作Mapper
* @createDate 2022-11-12 22:31:50
* @Entity generator.domain.CommunityPost
*/
public interface CommunityPostMapper extends BaseMapper<CommunityPost> {
    List<CommunityPostDto> getPostList(IPage page ,
                                       @Param("parentId") int parentId);
}




